package com.lcj.service.combine.impl;

import com.lcj.entity.bo.HeadLine;
import com.lcj.entity.bo.ShopCategory;
import com.lcj.entity.dto.MainPageInfoDTO;
import com.lcj.entity.dto.Result;
import com.lcj.service.combine.HeadLineShopCategoryCombineService;
import com.lcj.service.solo.HeadLineService;
import com.lcj.service.solo.ShopCategoryService;

import java.util.List;

/**
 * @Author：LCJ
 * @Description：
 * @Date：Create in 17:03 2021/4/30 0030
 */
public class HeadLineShopCategoryCombineServiceImpl implements HeadLineShopCategoryCombineService {

    private HeadLineService headLineService;

    private ShopCategoryService shopCategoryService;


    public Result<MainPageInfoDTO> getMainPageInfo() {
        HeadLine headLine = new HeadLine();
        headLine.setEnableStatus(1);
        Result<List<HeadLine>> headLines = headLineService.queryHeadLine(headLine,1,4);

        ShopCategory shopCategory = new ShopCategory();
        Result<List<ShopCategory>> listResult = shopCategoryService.queryShopCategory(shopCategory,1,100);
        Result<MainPageInfoDTO> result = mergeMainPageInfoResult(headLines,listResult);
        return result;
    }

    private Result<MainPageInfoDTO> mergeMainPageInfoResult(Result<List<HeadLine>> headLines, Result<List<ShopCategory>> shopCategorys){
        return null;
    }
}
